%%
%% getstart.tex -- Flight Gear documentation: The FlightGear Manual
%% Master file
%%
%% Written by Michael Basler % Bernhard Buckel, starting September 1998.
%%
%% Copyright (C) 2002 Michael Basler
%%                  & Bernhard Buckel
%%
%% This program is free software; you can redistribute it and/or
%% modify it under the terms of the GNU General Public License as
%% published by the Free Software Foundation; either version 2 of the
%% License, or (at your option) any later version.
%%
%% This program is distributed in the hope that it will be useful, but
%% WITHOUT ANY WARRANTY; without even the implied warranty of
%% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
%% General Public License for more details.
%%
%% You should have received a copy of the GNU General Public License
%% along with this program; if not, write to the Free Software
%% Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
%%
%% $Id: getstart.tex,v 0.6 2002/09/09 michael

\usepackage[utf8,latin1]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{graphicx}
\usepackage{times}
\usepackage{iflang}
\usepackage{eurosym}
\usepackage[usenames, dvipsnames]{color}
\usepackage{wrapfig}
\usepackage{tcolorbox}

\newenvironment{Sidebar}[1][r]
  {\wrapfigure{#1}{0.35\textwidth}\tcolorbox}
  {\endtcolorbox\endwrapfigure}

\newcommand{\Index}[1]{#1\index{#1}}
\newcommand{\OSG}{{\itshape OpenSceneGraph}}
\newcommand{\OPENAL}{{\itshape OpenAL}}
\newcommand{\PLIB}{{\itshape PLIB}}
\newcommand{\SimGear}{{\itshape SimGear}}
\newcommand{\FlightGear}{{\itshape FlightGear}}
\newcommand{\TerraGear}{{\itshape TerraGear}}
\newcommand{\TerraSync}{{\itshape TerraSync}}
\newcommand{\JSBSim}{{\itshape JSBSim}}
\newcommand{\YASim}{{\itshape YASim}}
\newcommand{\web}[1]{\href{#1}{#1}}
\newcommand{\mail}[1]{\href{mailto:#1}{#1}}
\newcommand{\Cygwin}{{\itshape Cygwin}}

\newcommand{\version}{{VERSION}} %% substituted by build process
\newcommand{\key}[1]{\textbf{\ttfamily{#1}}} % definition of key
\newcommand{\button}[1]{\textbf{\sffamily{#1}}} % definition of GUI button
\newcommand{\command}[1]{{\ttfamily{#1}}} % definition of console command

% Cheezy morse code definitions.
\newcommand{\mdot}{\raisebox{0.58ex}{\texttt{\makebox[0.33em]{.}}}}
\newcommand{\mdash}{\makebox[0.5em]{\texttt{-}}}
\newcommand{\mspace}{\makebox[0.5em]{}}

% To get and use the 'morse' package:
%
%   http://tug.ctan.org/tex-archive/fonts/morse/
%
%   Install morse.sty somewhere.
%
%   Move morse10.mf, morse.alf, morse.def, and morse.num to
%
%     $TEX/texmf.local/fonts/source/public/morse
%
%   and run 'sudo texhash'.
%
% \usepackage{morse}
%
% {\morse SOS}

\newcommand{\longpage}{\enlargethispage{\baselineskip}}
\newcommand{\shortpage}{\enlargethispage{-\baselineskip}}

\newcommand{\translatorStart}{\IfLanguageName{english}{}{\color{Fuchsia}}}
\newcommand{\translatorEnd}{\IfLanguageName{english}{}{\color{Black}}}

\usepackage{makeidx}
\makeindex
\makeglossary

\usepackage[
  a4paper,
  bookmarks,
  bookmarksopen=true,
  bookmarksnumbered=true,
  colorlinks,
  linkcolor=blue,
  urlcolor=blue
]{hyperref}

% Hyperlinks are written in Roman font (default is typewriter).
\urlstyle{rm}

\begin{document}
\include{title}
\include{preface}
\part{Installation}
\include{free}
\include{prefligh}

\IfLanguageName{french}{
  \part{Voler avec \FlightGear{}}
}{
\IfLanguageName{italian}{
  \part{II Volare con \FlightGear{}}
}{
  % default: English
  \translatorStart
  \part{Flying with \FlightGear{}}
  \translatorEnd
}}

\include{takeoff}
\include{flight}
\include{features}

\IfLanguageName{french}{
  \part{Tutoriels}
}{
\IfLanguageName{italian}{
  \part{Tutorial (Guide e esercitazioni)}
}{
  % default: English
  \translatorStart
  \part{Tutorials}
  \translatorEnd
}}

\include{tutorials}
\include{basic}
\include{crosscountry}
\include{ifr}
\include{helicopter}

\IfLanguageName{french}{
  \part{Annexes}
}{
\IfLanguageName{italian}{
  \part{Appendici}
}{
  \part{Appendices}
}}
\begin{appendix}
\include{missed}
\include{landing}
\end{appendix}

\include{GSIndex}

\end{document}
